const courseDatePage = (myPager,courseDto) => {
    return $axios({
        url:'/sports/st-course/selectCoursePage',  //分页查询课程管理
        method:'post',
        params:myPager,
        data:courseDto
    })
}
//下架课程
const takeDownCourse = (id) => {
    return $axios({
        url:`/sports/st-course/courseTakeDown/${id}`,
        method:'get'
    })
}
//根据id删除
const deleteCourse = (id) => {
    return $axios({
        url:`/sports/st-course/deleteCourse/${id}`,
        method:'delete'
    })
}



//分页查询选课明细
const selectionCourse = (currentPage,pageCount,params) =>{
    return $axios({
        url:'/sports/st-course/selectionCoursePage',
        method: 'post',
        params:params
    })
}

//查询下拉框的值
const selectionOption = () =>{
    return $axios({
        url:'/sports/st-course/option',
        method:'get'
    })
}

//添加课程
const addCourse = (course) => {
    return $axios({
        url:'/sports/st-course/addCourse',
        method:'post',
        params:course
    })
}